package com.ruyuan.eshop.data.migrate.tool.mapper.targetdb;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruyuan.eshop.data.migrate.tool.model.order.OrderAmountDO;
import com.ruyuan.eshop.data.migrate.tool.model.order.OrderAmountDetailDO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 订单费用表 Mapper 接口
 * </p>
 *
 * @author zhonghuashishan
 */
public interface TargetOrderAmountMapper extends BaseMapper<OrderAmountDO> {

    /**
     * 最大ID
     * @return
     */
    Long getMaxId();

    /**
     * 查询某个ID记录的gmt_modified字段
     * @param id 主键ID
     * @param orderId 订单ID
     * @return
     */
    Date getGmtModified(@Param("id") Long id, @Param("orderId") String orderId);

    /**
     * 批量新增
     * @param list
     */
    void batchInsert(@Param("list") List<OrderAmountDO> list);

}
